﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Cld-Slider.ascx.cs" Inherits="slider" %>
<%@ Import Namespace="System.Data" %>

<link rel="stylesheet" type="text/css" href="/Classified/sliderfiles/slidercss.css"/>
<script type="text/javascript" src="/Classified/sliderfiles/ga.js"></script>
 
   <!-- Start WOWSlider.com BODY section -->
          <div id="wowslider-container1">
            <div class="ws_images">
              <div class="ws_head"> 
              <img src="/Classified/images/sliderimages/dahlia.jpg"id="wows1_0" class="w100p"></div>
              <ul class="ws_ul">
                      <%       if (dsimage != null)
                     {
                         if (dsimage.Tables.Count > 0)
                         {
                             if (dsimage.Tables[0].Rows.Count > 0)
                             {
                                 foreach (DataRow dr in dsimage.Tables[0].Rows)
                                 {
                                     if (!string.IsNullOrEmpty(Convert.ToString(dr["Path"])) && Convert.ToBoolean(dr["IsImage"]))
                                     {
                             %> 
                    <li class="ws_li">
                        <img src='<%=Convert.ToString( dr["Path"]) %>'  id="Img1" class="visiblityvisible"></li>
                     <%}

                                 }
                             }

                         }
                             if (dsimage.Tables.Count > 1)
                         {
                             if (dsimage.Tables[1].Rows.Count > 0)
                             {
                                 foreach (DataRow dr in dsimage.Tables[1].Rows)
                                 {
                           if (!string.IsNullOrEmpty(Convert.ToString(dr["Path"])) && Convert.ToBoolean(dr["IsVideo"]))
                                 {%>
                                 
                                  
                    <li class="ws_li">
                        <img src="/Classified/images/sliderimages/black.jpg" id="Img2" class="visiblityhidden">
                        <iframe id="Iframe1" src='<%=Convert.ToString( dr["Path"]) %>' frameborder="0" class="ws_iframe">
                        </iframe>
                    </li>
                           <%}

                                 }
                             }

                         }
                         
                         
                         
                     } %> 
              </ul>
            </div>
            <div class="ws_thumbs of ohidden">
              <div class="ws_image"> 
                               <%       if (dsimage != null)
                     {
                         if (dsimage.Tables.Count > 0)
                         {
                             if (dsimage.Tables[0].Rows.Count > 0)
                             {
                                 foreach (DataRow dr in dsimage.Tables[0].Rows)
                                 {
                                     if (!string.IsNullOrEmpty(Convert.ToString(dr["Path"])) && Convert.ToBoolean(dr["IsImage"]))
                                     {%>
                                                        <a href="#">

                        <img src='<%=Convert.ToString( dr["Path"]) %>' alt=""/></a> 
                        
                           <%}
                                  
                                 }
                             }
                         }
                          if (dsimage.Tables.Count > 1)
                         {
                             if (dsimage.Tables[1].Rows.Count > 0)
                             {
                                 foreach (DataRow dr in dsimage.Tables[1].Rows)
                                 {
                        if (!string.IsNullOrEmpty(Convert.ToString(dr["Path"])) && Convert.ToBoolean(dr["IsVideo"]))
                                     {%>
                                       <a href="#" class="">
                        <img src="/Classified/images/sliderimages/video.jpg" alt=""/></a> 
                        
                        <% }

                                 }
                             }

                         }
                         
                         
                         
                     } %>
                      
            </div>
            </div>
            <!-- Generated by WOWSlider.com v3.0 -->
            <div class="ws_shadow"> </div>
      <%--      <a href="#" class="ws_next"> </a>
            <a href="#" class="ws_prev"> </a>--%>
            </div>
          <script type="text/javascript" src="/Classified/sliderfiles/wowslider.js"></script> 
          <script type="text/javascript" src="/Classified/sliderfiles/script.js"></script> 
          <!-- End WOWSlider.com BODY section --> 